<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//ZH-CN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="imagetoolbar" content="no" />
	<title>Class UI.StatusBar</title>
	<link href="../resources/API_Help.css" type="text/css" rel="stylesheet" />
</head>

<body>
<!--打印本页-->
<div class="printCurrentPage">
	<img src="../resources/image/print.gif" align="absmiddle" />&nbsp;
	<a href="ui_StatusBar_API.html" target="_blank">打印本页</a>
</div><br/>

<!--标题说明-->
<h1>Class UI.StatusBar</h1>
<b>定义于文件：</b>&nbsp;&nbsp;ui_statusBar.js
<div class="description">将页面对象渲染成状态栏控件。</div><br/>
<b>基本语法</b>
<div class="syntax">var statusBar = new <b>UI.StatusBar</b>( { &lt; <em>id:String|Tag</em> &gt; } );</div>
<b>参数说明</b>
<div class="parameter">
	<ul>
		<li><em>id</em> : String|Tag</li>
		<div class="subDesc">页面状态栏标签ID或是页面状态栏标签对象。</div>
	</ul>
</div>
<b>页面标签对象原型</b>
<div class="parameter">
	&lt;div&gt;&lt;/div&gt;
</div>
<b>依赖关系</b>
<div class="parameter">
	<a href="core_API.html">core.js</a>　　<a href="#">webui.js</a>
</div><br/>
<a href="#properties">相关属性</a>&nbsp;&nbsp;-&nbsp;&nbsp;
<a href="#methods">相关方法</a>&nbsp;&nbsp;-&nbsp;&nbsp;
<a href="#events">相关事件</a>&nbsp;&nbsp;-&nbsp;&nbsp;
<a href="#examples">应用示例</a>
<hr>

<!--相关属性-->
<a name="properties"></a>
<h2>相关属性</h2>
<table width="100%" cellspacing="0">
	<tbody>
		<tr>
			<td class="tableHead" width="83%">所有属性</td>
			<td class="tableHead" width="17%">所属类</td>
		</tr>
		<tr>
			<td class="tableLineLeft">
				<a href="#UI.StatusBar.dom" class="methodLink">UI.StatusBar.dom</a>&nbsp;:&nbsp;&lt;div&gt;<br/>
				状态栏控件的页面标签对象。
			</td><td class="tableLineRight">UI.StatusBar</td>
		</tr>
	</tbody>
</table>

<!--相关方法-->
<a name="methods"></a>
<h2>相关方法</h2>
<table width="100%" cellspacing="0">
	<tbody>
		<tr>
			<td class="tableHead" width="83%">所有方法</td>
			<td class="tableHead" width="17%">所属类</td>
		</tr>
		<tr>
			<td class="tableLineLeft">
				<a href="#add" class="methodLink">add</a>( <em>name:String</em>,&nbsp;&nbsp;<em>obj:Object</em> )&nbsp;:&nbsp;none<br/>
				向状态栏控件中添加一个成员项。
			</td><td class="tableLineRight">UI.StatusBar</td>
		</tr>
		<tr>
			<td class="tableLineLeft alt">
				<a href="#get" class="methodLink">get</a>( <em>name:String</em> )&nbsp;:&nbsp;Object|Tag<br/>
				返回参数 name 所对应的成员文本标签或JSR2控件对象。
			</td><td class="tableLineRight alt">UI.StatusBar</td>
		</tr>
		<tr>
			<td class="tableLineLeft">
				<a href="#hide" class="methodLink">hide</a>( <em>name:String</em>,&nbsp;&nbsp;<em>flag:boolean</em> )&nbsp;:&nbsp;none<br/>
				隐藏状态栏控件中参数 name 所对应的成员。
			</td><td class="tableLineRight">UI.StatusBar</td>
		</tr>
		<tr>
			<td class="tableLineLeft alt">
				<a href="#set" class="methodLink">set</a>( <em>name:String</em>,&nbsp;&nbsp;<em>texts:Object</em> )&nbsp;:&nbsp;none<br/>
				设置状态栏控件成员项的显示文本。
			</td><td class="tableLineRight alt">UI.StatusBar</td>
		</tr>
	</tbody>
</table>

<!--相关事件-->
<a name="events"></a>
<h2>相关事件</h2>
<div class="properties">本类无相关事件。</div><br/>

<hr>

<!--相关属性的详细说明-->
<h2>本类属性的详细说明</h2>
<div class="detailWrap">

<a name="UI.StatusBar.dom"></a>
<div class="mdetail">
	<h3>UI.StatusBar.dom</h3><br/>
	<div class="mdetailDetails">
		状态栏控件的页面标签对象。<br/>
		通过 dom 属性可直接对状态栏进行操作。
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_StatusBar_API.html">Return</a></div><br/>
</div>

</div><br/>

<!--相关方法的详细说明-->
<h2>本类方法的详细说明</h2>
<div class="detailWrap">

<a name="add"></a>
<div class="mdetail">
	<h3>add</h3>
	<div class="functionDefine">public function add( name:String, obj:Object )</div>
	<div class="mdetailDetails">
		向状态栏控件中添加一个成员项。<br/>
		状态栏的成员分为两种, 一种是文本成员, 一种是JSR2控件成员(如: 进度条控件)。
	</div><br/>
	<div class="mdetailDetails"><b>参数</b>
		<ul>
			<li><em>name</em> : String</li>
			<div class="subDesc">成员项的名称。</div>
			<li><em>obj</em> : Object</li>
			<div class="subDesc">
				参数 obj 为新添加成员项的参数或是JSR2控件实例。<br/>
				新添加成员项的参数语法：{ <em>width:Number</em>,&nbsp;&nbsp;<em>text:String</em>,&nbsp;&nbsp;<em>icon:String</em>,&nbsp;&nbsp;<em>split:boolean</em> }<br/>
				&nbsp;&nbsp;width : 成员宽度, 默认值: 120px<br/>
				&nbsp;&nbsp;text : 成员显示文本模板(具体应用见: <a href="#examples">应用示例</a> )<br/>
				&nbsp;&nbsp;icon : 成员左端图标的URL地址, 默认值: null<br/>
				&nbsp;&nbsp;split : 成员是否有分隔线, 默认值: null<br/>
			</div>
		</ul>
		<b>返回值</b>
		<ul><li>无</li></ul>
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_StatusBar_API.html">Return</a></div><br/>
</div>

<a name="get"></a>
<div class="mdetail alt">
	<h3>get</h3>
	<div class="functionDefine">public function get( name:String )</div>
	<div class="mdetailDetails">
		返回参数 name 所对应的成员文本标签或JSR2控件对象。
	</div><br/>
	<div class="mdetailDetails"><b>参数</b>
		<ul>
			<li><em>name</em> : String</li>
			<div class="subDesc">成员项名称。</div>
		</ul>
		<b>返回值</b>
		<ul><li>Object|Tag</li></ul>
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_StatusBar_API.html">Return</a></div><br/>
</div>

<a name="hide"></a>
<div class="mdetail">
	<h3>hide</h3>
	<div class="functionDefine">public function hide( name:String, flag:boolean )</div>
	<div class="mdetailDetails">
		隐藏状态栏控件中参数 name 所对应的成员。
	</div><br/>
	<div class="mdetailDetails"><b>参数</b>
		<ul>
			<li><em>name</em> : String</li>
			<div class="subDesc">成员项名称。</div>
			<li><em>flag</em> : boolean</li>
			<div class="subDesc">参数的取值&nbsp;&nbsp;&nbsp;&nbsp;true: 隐藏, false: 显示。</div>
		</ul>
		<b>返回值</b>
		<ul><li>无</li></ul>
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_StatusBar_API.html">Return</a></div><br/>
</div>

<a name="set"></a>
<div class="mdetail alt">
		<h3>set</h3>
	<div class="functionDefine">public function set( name:String, texts:Object )</div>
	<div class="mdetailDetails">设置状态栏控件成员项的显示文本。</div><br/>
	<div class="mdetailDetails"><b>参数</b>
		<ul>
			<li><em>name</em> : String</li>
			<div class="subDesc">成员项的名称。</div>
			<li><em>texts</em> : Object</li>
			<div class="subDesc">成员项的显示文本的关键值。(具体应用见: <a href="#examples">应用示例</a> )</div>
		</ul>
		<b>返回值</b>
		<ul><li>无</li></ul>
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_StatusBar_API.html">Return</a></div><br/>
</div>

</div><br/>

<!--应用示例-->
<a name="examples"></a>
<h2>应用示例</h2>
<div class="properties"><a href="../Example/ui_StatusBar.html" target="_blank">ui_StatusBar.html</a></div><br/>

<!--页脚-->
<hr>
<div class="footer">JSR - Copyright &copy; 2007-2008 Jsr JS, LLC<br/>All rights reserved.</div>
</body>
</html>
